﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Demo.Util
{
    public partial class InIDemo : Form
    {
        public InIDemo()
        {
            InitializeComponent();
            ini = new Cocon90.Lib.Util.IniHelper(Application.StartupPath + "\\setting.ini");
        }
        Cocon90.Lib.Util.IniHelper ini;
        private void button1_Click(object sender, EventArgs e)
        {
            ini.Write("分组", "节点1", textBox1.Text);
            ini.Write("分组", "节点2", textBox2.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            label1.Text = ini.Read("分组", "节点1");
            label2.Text = ini.Read("分组", "节点2");
        }
    }
}
